<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TScrollView类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_scroll_view.html">TScrollView</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_t_scroll_view-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.TScrollView类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TScrollView 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_t_scroll_view.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a57d713bb95d9be21ecd1b70ae02a79ea"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#a57d713bb95d9be21ecd1b70ae02a79ea">TScrollView</a> (long nativeObj)</td></tr>
<tr class="separator:a57d713bb95d9be21ecd1b70ae02a79ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bf71f070c69270e8bd108f940a13ffa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#a4bf71f070c69270e8bd108f940a13ffa">setVirtualW</a> (int w)</td></tr>
<tr class="separator:a4bf71f070c69270e8bd108f940a13ffa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9d254cb153ba964dd9c06b383014e57"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#ae9d254cb153ba964dd9c06b383014e57">setVirtualH</a> (int h)</td></tr>
<tr class="separator:ae9d254cb153ba964dd9c06b383014e57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab27b54344c6aa5f44b52d520c00f9406"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#ab27b54344c6aa5f44b52d520c00f9406">setXslidable</a> (boolean xslidable)</td></tr>
<tr class="separator:ab27b54344c6aa5f44b52d520c00f9406"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23192b03ed62c1bffdb8a6e49c2632a9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#a23192b03ed62c1bffdb8a6e49c2632a9">setYslidable</a> (boolean yslidable)</td></tr>
<tr class="separator:a23192b03ed62c1bffdb8a6e49c2632a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a803beb23871c4657deed1b1c246556dd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#a803beb23871c4657deed1b1c246556dd">setOffset</a> (int xoffset, int yoffset)</td></tr>
<tr class="separator:a803beb23871c4657deed1b1c246556dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6e35cb2b54e96a238991137cbf9b952"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#ad6e35cb2b54e96a238991137cbf9b952">setSpeedScale</a> (double xspeed_scale, double yspeed_scale)</td></tr>
<tr class="separator:ad6e35cb2b54e96a238991137cbf9b952"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf90beb57993af51b44a80483b01dbce"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#aaf90beb57993af51b44a80483b01dbce">scrollTo</a> (int xoffset_end, int yoffset_end, int duration)</td></tr>
<tr class="separator:aaf90beb57993af51b44a80483b01dbce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b3156496faead3afdda43361a34890b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#a0b3156496faead3afdda43361a34890b">scrollDeltaTo</a> (int xoffset_delta, int yoffset_delta, int duration)</td></tr>
<tr class="separator:a0b3156496faead3afdda43361a34890b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a288f9f8c91fd443825d61604024859b6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#a288f9f8c91fd443825d61604024859b6">getVirtualW</a> ()</td></tr>
<tr class="separator:a288f9f8c91fd443825d61604024859b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c04eecd561e60dd699382eb78c7f70d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#a0c04eecd561e60dd699382eb78c7f70d">getVirtualH</a> ()</td></tr>
<tr class="separator:a0c04eecd561e60dd699382eb78c7f70d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08cb423e65793267491a8ec8e7198db5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#a08cb423e65793267491a8ec8e7198db5">getXoffset</a> ()</td></tr>
<tr class="separator:a08cb423e65793267491a8ec8e7198db5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27b75158fa8e642091ab2c3fcb5ff2d3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#a27b75158fa8e642091ab2c3fcb5ff2d3">getYoffset</a> ()</td></tr>
<tr class="separator:a27b75158fa8e642091ab2c3fcb5ff2d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4b6f40d9605ec8ddae0f9aa3275b791"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#af4b6f40d9605ec8ddae0f9aa3275b791">getXspeedScale</a> ()</td></tr>
<tr class="separator:af4b6f40d9605ec8ddae0f9aa3275b791"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c627fe0125f18e39d0b6f971ba94cef"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#a6c627fe0125f18e39d0b6f971ba94cef">getYspeedScale</a> ()</td></tr>
<tr class="separator:a6c627fe0125f18e39d0b6f971ba94cef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3cf916bf25d882401a536ff121abf4b7"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#a3cf916bf25d882401a536ff121abf4b7">getXslidable</a> ()</td></tr>
<tr class="separator:a3cf916bf25d882401a536ff121abf4b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d9856261269999e26168ad35dfe7608"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#a8d9856261269999e26168ad35dfe7608">getYslidable</a> ()</td></tr>
<tr class="separator:a8d9856261269999e26168ad35dfe7608"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:af302d01b38c55b2f80a14800b63ad0ec"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_scroll_view.html">TScrollView</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#af302d01b38c55b2f80a14800b63ad0ec">cast</a> (long nativeObj)</td></tr>
<tr class="separator:af302d01b38c55b2f80a14800b63ad0ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72dec62cd847158469174145bc27b01c"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#a72dec62cd847158469174145bc27b01c">create</a> (TWidget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:a72dec62cd847158469174145bc27b01c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c106c1422ab931dbdec98d24214db01"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_scroll_view.html">TScrollView</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_scroll_view.html#a5c106c1422ab931dbdec98d24214db01">cast</a> (TWidget widget)</td></tr>
<tr class="separator:a5c106c1422ab931dbdec98d24214db01"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>滚动视图。</p>
<p>scroll_view_t是widget\_t的子类控件，widget_t的函数均适用于scroll_view_t控件。</p>
<p>在xml中使用"scroll\_view"标签创建滚动视图控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">list_view</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;-80&quot;</span> <span class="keyword">item_height</span>=<span class="stringliteral">&quot;60&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">scroll_view</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;view&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">list_item</span> <span class="keyword">style</span>=<span class="stringliteral">&quot;odd&quot;</span> <span class="keyword">children_layout</span>=<span class="stringliteral">&quot;default(rows=1,cols=0)&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">image</span> <span class="keyword">draw_type</span>=<span class="stringliteral">&quot;icon&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">image</span>=<span class="stringliteral">&quot;earth&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">label</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;-30&quot;</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;1.Hello AWTK !&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">switch</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;r:10&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;m&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;60&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;20&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">label</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">list_item</span>&gt;</div>
<div class="line">*...</div>
<div class="line">*&lt;/<span class="keywordtype">scroll_view</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">list_view</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>滚动视图一般作为列表视图的子控件使用。 </p>
</blockquote>
<blockquote class="doxtable">
<p>更多用法请参考：[list_view_m.xml]( </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/list_view_m.xml">https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/list_view_m.xml</a>)</p>
<p>在c代码中使用函数scroll_view_create创建列表视图控件。如：</p>
<p>可用通过style来设置控件的显示风格，如背景颜色和边框颜色等(一般情况不需要)。 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a57d713bb95d9be21ecd1b70ae02a79ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57d713bb95d9be21ecd1b70ae02a79ea">&#9670;&nbsp;</a></span>TScrollView()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TScrollView.TScrollView </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="af302d01b38c55b2f80a14800b63ad0ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af302d01b38c55b2f80a14800b63ad0ec">&#9670;&nbsp;</a></span>cast() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_scroll_view.html">TScrollView</a> awtk.TScrollView.cast </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<a id="a5c106c1422ab931dbdec98d24214db01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c106c1422ab931dbdec98d24214db01">&#9670;&nbsp;</a></span>cast() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_scroll_view.html">TScrollView</a> awtk.TScrollView.cast </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为scroll_view对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>scroll_view对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>scroll_view对象。 </dd></dl>

</div>
</div>
<a id="a72dec62cd847158469174145bc27b01c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a72dec62cd847158469174145bc27b01c">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static TWidget awtk.TScrollView.create </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建scroll_view对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a0c04eecd561e60dd699382eb78c7f70d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c04eecd561e60dd699382eb78c7f70d">&#9670;&nbsp;</a></span>getVirtualH()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TScrollView.getVirtualH </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>虚拟高度。 </p>

</div>
</div>
<a id="a288f9f8c91fd443825d61604024859b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a288f9f8c91fd443825d61604024859b6">&#9670;&nbsp;</a></span>getVirtualW()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TScrollView.getVirtualW </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>虚拟宽度。 </p>

</div>
</div>
<a id="a08cb423e65793267491a8ec8e7198db5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08cb423e65793267491a8ec8e7198db5">&#9670;&nbsp;</a></span>getXoffset()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TScrollView.getXoffset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>x偏移量。 </p>

</div>
</div>
<a id="a3cf916bf25d882401a536ff121abf4b7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3cf916bf25d882401a536ff121abf4b7">&#9670;&nbsp;</a></span>getXslidable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TScrollView.getXslidable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否允许x方向滑动。 </p>

</div>
</div>
<a id="af4b6f40d9605ec8ddae0f9aa3275b791"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af4b6f40d9605ec8ddae0f9aa3275b791">&#9670;&nbsp;</a></span>getXspeedScale()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.TScrollView.getXspeedScale </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>x偏移速度比例。 </p>

</div>
</div>
<a id="a27b75158fa8e642091ab2c3fcb5ff2d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27b75158fa8e642091ab2c3fcb5ff2d3">&#9670;&nbsp;</a></span>getYoffset()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TScrollView.getYoffset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>y偏移量。 </p>

</div>
</div>
<a id="a8d9856261269999e26168ad35dfe7608"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d9856261269999e26168ad35dfe7608">&#9670;&nbsp;</a></span>getYslidable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TScrollView.getYslidable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否允许y方向滑动。 </p>

</div>
</div>
<a id="a6c627fe0125f18e39d0b6f971ba94cef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c627fe0125f18e39d0b6f971ba94cef">&#9670;&nbsp;</a></span>getYspeedScale()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.TScrollView.getYspeedScale </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>y偏移速度比例。 </p>

</div>
</div>
<a id="a0b3156496faead3afdda43361a34890b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b3156496faead3afdda43361a34890b">&#9670;&nbsp;</a></span>scrollDeltaTo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TScrollView.scrollDeltaTo </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>xoffset_delta</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>yoffset_delta</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>duration</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>滚动到指定的偏移量。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">xoffset_delta</td><td>x偏移量。 </td></tr>
    <tr><td class="paramname">yoffset_delta</td><td>y偏移量。 </td></tr>
    <tr><td class="paramname">duration</td><td>时间。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aaf90beb57993af51b44a80483b01dbce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf90beb57993af51b44a80483b01dbce">&#9670;&nbsp;</a></span>scrollTo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TScrollView.scrollTo </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>xoffset_end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>yoffset_end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>duration</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>滚动到指定的偏移量。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">xoffset_end</td><td>x偏移量。 </td></tr>
    <tr><td class="paramname">yoffset_end</td><td>y偏移量。 </td></tr>
    <tr><td class="paramname">duration</td><td>时间。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a803beb23871c4657deed1b1c246556dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a803beb23871c4657deed1b1c246556dd">&#9670;&nbsp;</a></span>setOffset()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TScrollView.setOffset </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>xoffset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>yoffset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置偏移量。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">xoffset</td><td>x偏移量。 </td></tr>
    <tr><td class="paramname">yoffset</td><td>y偏移量。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad6e35cb2b54e96a238991137cbf9b952"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6e35cb2b54e96a238991137cbf9b952">&#9670;&nbsp;</a></span>setSpeedScale()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TScrollView.setSpeedScale </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>xspeed_scale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>yspeed_scale</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置偏移速度比例。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">xspeed_scale</td><td>x偏移速度比例。。 </td></tr>
    <tr><td class="paramname">yspeed_scale</td><td>y偏移速度比例。。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ae9d254cb153ba964dd9c06b383014e57"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae9d254cb153ba964dd9c06b383014e57">&#9670;&nbsp;</a></span>setVirtualH()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TScrollView.setVirtualH </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置虚拟高度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">h</td><td>虚拟高度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a4bf71f070c69270e8bd108f940a13ffa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4bf71f070c69270e8bd108f940a13ffa">&#9670;&nbsp;</a></span>setVirtualW()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TScrollView.setVirtualW </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置虚拟宽度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td>虚拟宽度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ab27b54344c6aa5f44b52d520c00f9406"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab27b54344c6aa5f44b52d520c00f9406">&#9670;&nbsp;</a></span>setXslidable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TScrollView.setXslidable </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>xslidable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置是否允许x方向滑动。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">xslidable</td><td>是否允许滑动。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a23192b03ed62c1bffdb8a6e49c2632a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23192b03ed62c1bffdb8a6e49c2632a9">&#9670;&nbsp;</a></span>setYslidable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TScrollView.setYslidable </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>yslidable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置是否允许y方向滑动。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">yslidable</td><td>是否允许滑动。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/TScrollView.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
